package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_workorder_cancel_record")
public class WorkOrderCancelRecord extends BaseEntity {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "客户ID")
    @TableField("consumer_id")
    private Integer consumerId;

    @ApiModelProperty(value = "工单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "工单系统，1- 新时刻助手，2- 老时刻助手")
    @TableField("work_system_type")
    private Integer workSystemType;

    @ApiModelProperty(value = "取消结果 0:成功 1:失败")
    @TableField("result")
    private Integer result;

    @ApiModelProperty(value = "取消错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @ApiModelProperty(value = "诉求类型 0:报警 1:故障")
    @TableField("appeal_type")
    private Integer appealType;

    @ApiModelProperty(value = "报警/故障记录id t_history_alarm.id/t_history_broken.id")
    @TableField("alarm_broken_id")
    private Long alarmBrokenId;

    @ApiModelProperty(value = "执行次数")
    @TableField("exec_num")
    private Integer execNum;

}
